// 用户请求接口
export interface UserRequest {
  id?: string;
  account?: string;
  password?: string;
}

// 请求
export interface WhereRequest {
  key?: string,
  limit?: number,
  page?: number,
  oid?: '',
  isBan: number
}
// 添加 api 文档的请求接口
export interface DocumentRequest {
  name?: string;
  controller?: string;
  methods?: string;
  remark?: string;
  roles?: string;
  hasActionlog?: number;
  isAuth?: number;
  param: param[];
}

// 参数接口
export interface param {
  type: string;
  name: string;
  remark: string;
}


export interface RightWhere {
  limit: number,
  page: number,
  isBan: number,
  isActive: number,
  isPublic: number,
  isMenu: number,
  key: string
}

export interface load {
  first?: boolean,
  second?: boolean;
  main?: boolean
}
export interface AllDisable {
  Active: boolean,
  On: boolean,
  Off?: boolean,
  logout?: boolean
}
export interface RightRequest {
  Wheres: RightWhere,
  total: number,
  data: any,
  Load: load,
  CheckData: any[],
  AllDisable: AllDisable
}
export interface RightDto {
  name?: string,
  isPublic?: number,
  isMenu?: number,
  no?: number,
  parentid?: string | string[],
  url?: string,
  icon?: string,
  explain?: string
}

export interface AddRight {
  data: RightDto,
  ParentIds: any[],
  ChildData: any[],
  prop: any,
  Load: load,
  active: string
}

export interface RightDetails {
  data: any,
  id: any,
  show: boolean,
  ChildData: any[],
  Load: load,
  prop: any,
  ParentIds: any[]
}
export interface JobRequest {
  name: string,
  explain: string,
  lv: number
}




